package com.yingxin.yx.framework.user.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @author fanchao
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class TokenDto {

    private static final long serialVersionUID = -3599460632836659650L;

    /**
     * TokenVo
     * 访问token
     */
    private String token;

    /**
     * 刷新token
     */
    private String refreshToken;

    /**
     * token过期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date expireTime;

    /**
     * 用户的标识
     */
    private String userId;

    private String username;

    private String realName;

    private String staffName;

    private String avatar;

    private String isAppLogon;
    private String phone;
    /**
     * 登录Ip
     */
    private String loginIP;
    /**
     * 登录时间
     */
    private Date loginTime;


}